package data.nanjing.expo.models.domain.exhibition;

import com.fasterxml.jackson.annotation.JsonFormat;

import javax.validation.constraints.NotEmpty;
import java.util.Date;

/**
 * 历史展会的名称和链接
 *
 * @author ChanJi
 * @create 2018-06-17 14:36
 **/
public class ExhibitionHistory {
    private Integer id;
    /**
     * 展会id
     * exhibition_id
     */
    private Integer expoId;
    /**
     * 历史展会的id
     */
    private Integer hisExpoId;
    /**
     * 历史展览名称
     * hisExhibition_name
     */
    @NotEmpty(message = "历史展会名称不能为空")
    private String hisExpoName;
    /**
     * 历史展览url
     * hisExhibition_url
     */
    @NotEmpty(message = "历史展会链接不能为空")
    private String hisExpoUrl;
    /**
     * 创建时间
     * gmt_create
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date createTime;
    /**
     * 上次更新时间
     * gmt_modified
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date  updateTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getExpoId() {
        return expoId;
    }

    public void setExpoId(Integer expoId) {
        this.expoId = expoId;
    }

    public Integer getHisExpoId() {
        return hisExpoId;
    }

    public void setHisExpoId(Integer hisExpoId) {
        this.hisExpoId = hisExpoId;
    }

    public String getHisExpoName() {
        return hisExpoName;
    }

    public void setHisExpoName(String hisExpoName) {
        this.hisExpoName = hisExpoName;
    }

    public String getHisExpoUrl() {
        return hisExpoUrl;
    }

    public void setHisExpoUrl(String hisExpoUrl) {
        this.hisExpoUrl = hisExpoUrl;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "ExhibitionHistory{" +
                "id=" + id +
                ", expoId=" + expoId +
                ", hisExpoId=" + hisExpoId +
                ", hisExpoName='" + hisExpoName + '\'' +
                ", hisExpoUrl='" + hisExpoUrl + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }
}
